/**
 * @author   Ivan Andonov
 * @email:   ivan.andonov[at]gmail[dot]com
 *
 * @require  sjs
 * @use
 * @optional 
 **/

(function() {
	sjs.create('sjs.Numbers', {
		
		// PUBLIC STATIC METHODS
		isNumber : function(num) {
			return !(isNaN(num) || !String(num).length);
		},
		
		getNumberBtw : function(num, min, max) {
			return Math.min(Math.max(num, min), max);
		},
		
		isNumberBtw : function(num, min, max) {
			return num >= min && num <= max;
		}
		
	});
	
})();